//
//  FTUIButton.m
//  项目2
//
//  Created by rimi on 16/8/19.
//  Copyright © 2016年 wzc. All rights reserved.
//

#import "FTUIButton.h"

@implementation FTUIButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(CGRect)titleRectForContentRect:(CGRect)contentRect{
    CGFloat titleW = contentRect.size.width/2 + 10;
    CGFloat titleH = contentRect.size.height;
    return CGRectMake(0, 0, titleW, titleH);
}
-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    CGFloat imageX = contentRect.size.width/2 + 10;
    CGFloat imageY = contentRect.size.height/4;
    CGFloat imageH = contentRect.size.height;
    CGFloat imageW = contentRect.size.width/2 - 10;
    return CGRectMake(imageX, imageY, imageW/2, imageH/2);
}
@end
